import { request } from '@/utils';
import { getRestBaseUrl } from '@/config';

//查询
export const listCellularStoreApi = (cellularCode = null, topChannelCode = null) =>
  request({
    url: `${getRestBaseUrl()}/iop/cellularService/listCellularStore`,
    method: 'POST',
    data: { cellularCode, topChannelCode },
    timeout: 3 * 60 * 1000,
  });

// 删除蜂窝信息
export const deleteCellularInfo = id =>
  request({
    url: `${getRestBaseUrl()}/iop/cellularService/delete`,
    method: 'POST',
    data: { id },
    timeout: 3 * 60 * 1000,
  });

// 删除益丰门店信息
export const deleteYfStoreApi = channelCode =>
  request({
    url: `${getRestBaseUrl()}/iop/channelStoreService/delete`,
    method: 'POST',
    data: { channelCode },
    timeout: 3 * 60 * 1000,
  });

//

// 删除表格益丰竞对门店记录
export const deleteCompeteStoreApi = competeStoreName =>
  request({
    url: `${getRestBaseUrl()}/iop/cellularService/deleteCompeteStore`,
    method: 'POST',
    data: { competeStoreName },
  });
